home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 April / EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso / EARCD / text / hyper / hsc_source.lha / hsc / source / hsclib / msgid.h < prev    next >
C/C++ Source or Header  |  1996-11-15  |  7KB  |  167 lines

  1. /*
  2.  * hsclib/msgid.h
  3.  *
  4.  * defines for message-ids (warnings, errors,..)
  5.  *
  6.  * updated: 14-Oct-1996
  7.  * created: 30-Jul-1995
  8.  */
  9.  
  10. #ifndef HSC_MSGID_H
  11. #define HSC_MSGID_H
  12.  
  13. #include "ugly/utypes.h"
  14.  
  15. /* masks for message classes */
  16. #define MASK_MESSAGE   0x0fff
  17. #define MASK_MSG_CLASS 0xf000
  18.  
  19. /* message  classes */
  20. #define MSG_NOTE  0x00000       /* message */
  21. #define MSG_STYLE 0x01000       /* bad style */
  22. #define MSG_PORT  0x02000       /* portability prolem */
  23. #define MSG_WARN  0x03000       /* warning */
  24. #define MSG_ERROR 0x04000       /* error */
  25. #define MSG_FATAL 0x0f000       /* fatal error */
  26. #define MSG_NONE  0xff000       /* out of msg-array */
  27.  
  28. /*
  29.  *=========================
  30.  * next message number
  31.  *=========================
  32.  */
  33. #define MAX_MSGID (84-1)
  34.  
  35. /*
  36.  * obsolete numbers:
  37.  * - 67
  38.  * #define MSG_NO_OUTPUT          (MSG_FATAL+  4)  / * can't open output file * /
  39.  * #define MSG_NO_OUTFNAME        (MSG_FATAL+  5)  / * can't evaluate outp-filenm. * /
  40.  * #define MSG_WSPC_AROUND_TAG    (MSG_STYLE+  8)  / * white space around tag * /
  41.  * #define MSG_EXPT_H1            (MSG_PORT + 28)  / * Hx: first heading H1 * /
  42.  * #define MSG_ENUM_SUSPICIOUS    (MSG_WARN + 36)  / * suspicios enum value * /
  43.  * #define MSG_ILLG_NUMENT        (MSG_ERROR+ 32)  / * illegal numeric entity * /
  44.  * #define MSG_RPLC_SPCCHR        (MSG_NOTE + 52)  / * replaced special char * /
  45.  *
  46.  */
  47.  
  48. /*
  49.  * fatal errors
  50.  */
  51. #define MSG_NEW_PRJFILE        (MSG_WARN +  1)  /* creating new project file */
  52. #define MSG_CORRUPT_PRJFILE    (MSG_FATAL+  2)  /* corrupt project file */
  53. #define MSG_UNEX_EOF           (MSG_FATAL+  3)  /* unexpected eof */
  54. #define MSG_NO_INPUT           (MSG_FATAL+  6)  /* can't open input file */
  55.  
  56. /*
  57.  * information messages
  58.  */
  59. #define MSG_TAG_STRIPPED       (MSG_NOTE +  7)  /* stripped tag with ext. href */
  60. #define MSG_TAG_CANT_STRIP     (MSG_WARN + 70)  /* can't strp special tag */
  61.  
  62. /*
  63.  * bad style messages
  64.  */
  65. #define MSG_WRONG_HEADING      (MSG_STYLE+  9)  /* wrong heading */
  66. #define MSG_CLICK_HERE         (MSG_STYLE+ 10)  /* click-here-syndrome */
  67.  
  68. /*
  69.  * messages within tags
  70.  */
  71. #define MSG_UNKN_TAG           (MSG_WARN + 11)  /* unknown tag */
  72. #define MSG_TAG_TOO_OFTEN      (MSG_ERROR+ 12)  /* tag occured too often */
  73. #define MSG_UNMA_CTAG          (MSG_ERROR+ 13)  /* unmatched end-tag */
  74. #define MSG_CTAG_NESTING       (MSG_WARN + 14)  /* illegal end-tag nesting */
  75. #define MSG_MISS_REQTAG        (MSG_WARN + 15)  /* required tag missing */
  76. #define MSG_MISS_CTAG          (MSG_WARN + 16)  /* end-tag missing */
  77. #define MSG_UNKN_TAG_OPTION    (MSG_ERROR+ 17)  /* unknown tag option */
  78. #define MSG_TAG_OBSOLETE       (MSG_WARN + 37)  /* obsolete tag */
  79. #define MSG_TAG_JERK           (MSG_WARN + 38)  /* jerk tag */
  80. #define MSG_ILLG_WHTSPC        (MSG_ERROR+ 47)  /* illegal whitespace */
  81. #define MSG_MBI                (MSG_ERROR+ 60)  /* must be inside */
  82. #define MSG_NAW                (MSG_ERROR+ 61)  /* not allowed with */
  83. #define MSG_ILLG_CTAG          (MSG_ERROR+ 66)  /* illegal end-tag */
  84. #define MSG_SUCC_WHTSPC        (MSG_STYLE+ 78)  /* succeeding white-space */
  85. #define MSG_PREC_WHTSPC        (MSG_STYLE+ 79)  /* preceeding white-space */
  86.  
  87. /*
  88.  * messages within entities
  89.  */
  90. #define MSG_UNKN_ENTITY        (MSG_WARN + 18)  /* unknown entity */
  91. #define MSG_EXPT_SEMIC         (MSG_WARN + 19)  /* ";" expected */
  92. #define MSG_RPLC_ENT           (MSG_NOTE + 46)  /* replaced entity */
  93. #define MSG_ILLG_DEFENT        (MSG_ERROR+ 69)  /* illegal entity definition */
  94. #define MSG_ICON_ENTITY        (MSG_PORT + 58)  /* icon-entity found */
  95. #define MSG_RPLC_ICON          (MSG_NOTE + 77)  /* icon-entity found */
  96.  
  97. /*
  98.  * messages within attributes
  99.  */
  100. #define MSG_UNKN_ATTR          (MSG_ERROR+ 20)  /* unknown attribute */
  101. #define MSG_NO_URIPATH         (MSG_WARN + 21)  /* path to URI not found */
  102. #define MSG_ARG_NO_QUOTE       (MSG_WARN + 22)  /* argument without quote */
  103. #define MSG_EMPTY_SYMB_REF     (MSG_ERROR+ 23)  /* empty symbol reference */
  104. #define MSG_ILLG_ATTR_FLAG     (MSG_WARN + 24)  /* attribute flag not allowed here */
  105.  
  106. #define MSG_UNEX_ATTR_TYPE     (MSG_ERROR+ 25)  /* illegal symbol type */
  107. #define MSG_UNEX_ATTR_VALUE    (MSG_WARN + 45)  /* unexpected attribute value */
  108.  
  109. #define MSG_SYMB_2ND_DEFAULT   (MSG_ERROR+ 26)  /* default value already set */
  110. #define MSG_ENUM_UNKN          (MSG_WARN + 35)  /* unknown enum value */
  111. #define MSG_NOARG_ATTR         (MSG_ERROR+ 42)  /* attr requires arg */
  112. #define MSG_UNKN_ATTR_OPTION   (MSG_ERROR+ 43)  /* unknown attr option */
  113. #define MSG_MISS_REQ_ATTR      (MSG_ERROR+ 44)  /* required attr missing */
  114. #define MSG_ATTR_REDEFINED     (MSG_WARN + 63)  /* attr already defined */
  115. #define MSG_ILLG_ATTRNAME      (MSG_ERROR+ 64)  /* illegal attribute identifier */
  116. #define MSG_UNKN_BINOP         (MSG_ERROR+ 65)  /* unknown binary operator */
  117. #define MSG_ATTR_CONST         (MSG_ERROR+ 27)  /* can't change constant attr */
  118.  
  119. /*
  120.  * messages from tag handles
  121.  */
  122. #define MSG_ANCH_NO_NMHR       (MSG_ERROR+ 29)  /* A : no NAME or HREF */
  123. #define MSG_CL_TAG_ARG         (MSG_ERROR+ 62)  /* args for end-tag */
  124. #define MSG_LF_IN_COMMENT      (MSG_PORT + 48)  /* LF within comment */
  125. #define MSG_GT_IN_COMMENT      (MSG_PORT + 49)  /* GT within comment */
  126. #define MSG_CMTEND_QUOTE       (MSG_PORT + 50)  /* SGML-comment ends in quotes */
  127. #define MSG_ZERO_COMMENT       (MSG_PORT + 55)  /* SGML zero comment */
  128. #define MSG_ONEW_COMMENT       (MSG_PORT + 56)  /* SGML one word comment */
  129.  
  130. /*
  131.  * messages from hsc-tag handles
  132.  */
  133. #define MSG_SYSTEM_RETURN      (MSG_WARN + 54)  /* external process result <> 0 */
  134. #define MSG_UNMA_ELSE          (MSG_ERROR+ 53)  /* unmatched $ELSE */
  135. #define MSG_DEFTAG_NO_OPEN     (MSG_FATAL+ 57)  /* no opening tag for deftag cl. */
  136. #define MSG_REDEFINE_TAG       (MSG_WARN + 59)  /* redefined & replaced tag */
  137. #define MSG_USER_MESSAGE       (           39)  /* user message */
  138. #define MSG_BLINK_SUX          (MSG_STYLE+ 25)  /* blink sucks  */
  139. #define MSG_FRAME_SUX          (MSG_STYLE+ 76)  /* frames are disgusting */
  140.  
  141. /*
  142.  * messages within expressions
  143.  */
  144. #define MSG_UNKN_ENVVAR        (MSG_WARN + 41)  /* unknown environ. var */
  145. #define MSG_ILLG_NUM           (MSG_WARN + 71)  /* illegal numeric value */
  146. #define MSG_ILLG_COLOR         (MSG_WARN + 72)  /* illegal color value */
  147. #define MSG_REQU_QUOTE         (MSG_WARN + 81)  /* value required quotes */
  148. #define MSG_CHANGED_QUOTE      (MSG_NOTE + 82)  /* not assign quote requested */
  149.  
  150. /*
  151.  * misc. messages
  152.  */
  153. #define MSG_UNMA_GT            (MSG_ERROR+ 30)  /* unmatched ">" */
  154. #define MSG_UNEXPT_CH          (MSG_ERROR+ 31)  /* unexpected char */
  155. #define MSG_STR_LF             (MSG_WARN + 33)  /* linefeed in string */
  156. #define MSG_UNEX_EOL           (MSG_ERROR+ 34)  /* unexpected eol */
  157. #define MSG_NO_CONFIG          (MSG_FATAL+ 40)  /* can't open config */
  158. #define MSG_NO_DOCENTRY        (MSG_WARN + 51)  /* no document-entry for id */
  159. #define MSG_UNKN_FILETYPE      (MSG_WARN + 68)  /* unknown file type (for size) */
  160. #define MSG_UNKN_LOCAL_ID      (MSG_WARN + 73)  /* unknown local ID */
  161. #define MSG_UNKN_ID            (MSG_WARN + 74)  /* unknown ID */
  162. #define MSG_REDEFINE_ID        (MSG_WARN + 75)  /* duplicate ID */
  163. #define MSG_NOEXEC_OUTPUT      (MSG_WARN + 80)  /* no output-file for <$exec>*/
  164. #define MSG_IOERROR            (MSG_ERROR+ 83)  /* i/o-error */
  165. #endif
  166.  
  167.